package com.lxk.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysinfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysinfoExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSysinfoIdIsNull() {
            addCriterion("sysinfo_id is null");
            return (Criteria) this;
        }

        public Criteria andSysinfoIdIsNotNull() {
            addCriterion("sysinfo_id is not null");
            return (Criteria) this;
        }

        public Criteria andSysinfoIdEqualTo(Integer value) {
            addCriterion("sysinfo_id =", value, "sysinfoId");
            return (Criteria) this;
        }

        public Criteria andSysinfoIdNotEqualTo(Integer value) {
            addCriterion("sysinfo_id <>", value, "sysinfoId");
            return (Criteria) this;
        }

        public Criteria andSysinfoIdGreaterThan(Integer value) {
            addCriterion("sysinfo_id >", value, "sysinfoId");
            return (Criteria) this;
        }

        public Criteria andSysinfoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sysinfo_id >=", value, "sysinfoId");
            return (Criteria) this;
        }

        public Criteria andSysinfoIdLessThan(Integer value) {
            addCriterion("sysinfo_id <", value, "sysinfoId");
            return (Criteria) this;
        }

        public Criteria andSysinfoIdLessThanOrEqualTo(Integer value) {
            addCriterion("sysinfo_id <=", value, "sysinfoId");
            return (Criteria) this;
        }

        public Criteria andSysinfoIdIn(List<Integer> values) {
            addCriterion("sysinfo_id in", values, "sysinfoId");
            return (Criteria) this;
        }

        public Criteria andSysinfoIdNotIn(List<Integer> values) {
            addCriterion("sysinfo_id not in", values, "sysinfoId");
            return (Criteria) this;
        }

        public Criteria andSysinfoIdBetween(Integer value1, Integer value2) {
            addCriterion("sysinfo_id between", value1, value2, "sysinfoId");
            return (Criteria) this;
        }

        public Criteria andSysinfoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sysinfo_id not between", value1, value2, "sysinfoId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdIsNull() {
            addCriterion("wx_user_id is null");
            return (Criteria) this;
        }

        public Criteria andWxUserIdIsNotNull() {
            addCriterion("wx_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andWxUserIdEqualTo(Integer value) {
            addCriterion("wx_user_id =", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdNotEqualTo(Integer value) {
            addCriterion("wx_user_id <>", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdGreaterThan(Integer value) {
            addCriterion("wx_user_id >", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("wx_user_id >=", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdLessThan(Integer value) {
            addCriterion("wx_user_id <", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("wx_user_id <=", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdIn(List<Integer> values) {
            addCriterion("wx_user_id in", values, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdNotIn(List<Integer> values) {
            addCriterion("wx_user_id not in", values, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdBetween(Integer value1, Integer value2) {
            addCriterion("wx_user_id between", value1, value2, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("wx_user_id not between", value1, value2, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andSysinfoTypeIsNull() {
            addCriterion("sysinfo_type is null");
            return (Criteria) this;
        }

        public Criteria andSysinfoTypeIsNotNull() {
            addCriterion("sysinfo_type is not null");
            return (Criteria) this;
        }

        public Criteria andSysinfoTypeEqualTo(Integer value) {
            addCriterion("sysinfo_type =", value, "sysinfoType");
            return (Criteria) this;
        }

        public Criteria andSysinfoTypeNotEqualTo(Integer value) {
            addCriterion("sysinfo_type <>", value, "sysinfoType");
            return (Criteria) this;
        }

        public Criteria andSysinfoTypeGreaterThan(Integer value) {
            addCriterion("sysinfo_type >", value, "sysinfoType");
            return (Criteria) this;
        }

        public Criteria andSysinfoTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("sysinfo_type >=", value, "sysinfoType");
            return (Criteria) this;
        }

        public Criteria andSysinfoTypeLessThan(Integer value) {
            addCriterion("sysinfo_type <", value, "sysinfoType");
            return (Criteria) this;
        }

        public Criteria andSysinfoTypeLessThanOrEqualTo(Integer value) {
            addCriterion("sysinfo_type <=", value, "sysinfoType");
            return (Criteria) this;
        }

        public Criteria andSysinfoTypeIn(List<Integer> values) {
            addCriterion("sysinfo_type in", values, "sysinfoType");
            return (Criteria) this;
        }

        public Criteria andSysinfoTypeNotIn(List<Integer> values) {
            addCriterion("sysinfo_type not in", values, "sysinfoType");
            return (Criteria) this;
        }

        public Criteria andSysinfoTypeBetween(Integer value1, Integer value2) {
            addCriterion("sysinfo_type between", value1, value2, "sysinfoType");
            return (Criteria) this;
        }

        public Criteria andSysinfoTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("sysinfo_type not between", value1, value2, "sysinfoType");
            return (Criteria) this;
        }

        public Criteria andSysinfoTimeIsNull() {
            addCriterion("sysinfo_time is null");
            return (Criteria) this;
        }

        public Criteria andSysinfoTimeIsNotNull() {
            addCriterion("sysinfo_time is not null");
            return (Criteria) this;
        }

        public Criteria andSysinfoTimeEqualTo(Date value) {
            addCriterion("sysinfo_time =", value, "sysinfoTime");
            return (Criteria) this;
        }

        public Criteria andSysinfoTimeNotEqualTo(Date value) {
            addCriterion("sysinfo_time <>", value, "sysinfoTime");
            return (Criteria) this;
        }

        public Criteria andSysinfoTimeGreaterThan(Date value) {
            addCriterion("sysinfo_time >", value, "sysinfoTime");
            return (Criteria) this;
        }

        public Criteria andSysinfoTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("sysinfo_time >=", value, "sysinfoTime");
            return (Criteria) this;
        }

        public Criteria andSysinfoTimeLessThan(Date value) {
            addCriterion("sysinfo_time <", value, "sysinfoTime");
            return (Criteria) this;
        }

        public Criteria andSysinfoTimeLessThanOrEqualTo(Date value) {
            addCriterion("sysinfo_time <=", value, "sysinfoTime");
            return (Criteria) this;
        }

        public Criteria andSysinfoTimeIn(List<Date> values) {
            addCriterion("sysinfo_time in", values, "sysinfoTime");
            return (Criteria) this;
        }

        public Criteria andSysinfoTimeNotIn(List<Date> values) {
            addCriterion("sysinfo_time not in", values, "sysinfoTime");
            return (Criteria) this;
        }

        public Criteria andSysinfoTimeBetween(Date value1, Date value2) {
            addCriterion("sysinfo_time between", value1, value2, "sysinfoTime");
            return (Criteria) this;
        }

        public Criteria andSysinfoTimeNotBetween(Date value1, Date value2) {
            addCriterion("sysinfo_time not between", value1, value2, "sysinfoTime");
            return (Criteria) this;
        }

        public Criteria andIsReadIsNull() {
            addCriterion("is_read is null");
            return (Criteria) this;
        }

        public Criteria andIsReadIsNotNull() {
            addCriterion("is_read is not null");
            return (Criteria) this;
        }

        public Criteria andIsReadEqualTo(Integer value) {
            addCriterion("is_read =", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotEqualTo(Integer value) {
            addCriterion("is_read <>", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadGreaterThan(Integer value) {
            addCriterion("is_read >", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_read >=", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadLessThan(Integer value) {
            addCriterion("is_read <", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadLessThanOrEqualTo(Integer value) {
            addCriterion("is_read <=", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadIn(List<Integer> values) {
            addCriterion("is_read in", values, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotIn(List<Integer> values) {
            addCriterion("is_read not in", values, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadBetween(Integer value1, Integer value2) {
            addCriterion("is_read between", value1, value2, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotBetween(Integer value1, Integer value2) {
            addCriterion("is_read not between", value1, value2, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIsNull() {
            addCriterion("is_deleted is null");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIsNotNull() {
            addCriterion("is_deleted is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeletedEqualTo(Integer value) {
            addCriterion("is_deleted =", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotEqualTo(Integer value) {
            addCriterion("is_deleted <>", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedGreaterThan(Integer value) {
            addCriterion("is_deleted >", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_deleted >=", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedLessThan(Integer value) {
            addCriterion("is_deleted <", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedLessThanOrEqualTo(Integer value) {
            addCriterion("is_deleted <=", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIn(List<Integer> values) {
            addCriterion("is_deleted in", values, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotIn(List<Integer> values) {
            addCriterion("is_deleted not in", values, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedBetween(Integer value1, Integer value2) {
            addCriterion("is_deleted between", value1, value2, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotBetween(Integer value1, Integer value2) {
            addCriterion("is_deleted not between", value1, value2, "isDeleted");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}